package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePackagessuppliesMapper;
import com.ruoyi.service.domain.ServicePackagessupplies;
import com.ruoyi.service.service.IServicePackagessuppliesService;

/**
 * 耗材包与耗材对照Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServicePackagessuppliesServiceImpl implements IServicePackagessuppliesService 
{
    @Autowired
    private ServicePackagessuppliesMapper servicePackagessuppliesMapper;

    /**
     * 查询耗材包与耗材对照
     * 
     * @param packagessuppliesId 耗材包与耗材对照主键
     * @return 耗材包与耗材对照
     */
    @Override
    public ServicePackagessupplies selectServicePackagessuppliesByPackagessuppliesId(Long packagessuppliesId)
    {
        return servicePackagessuppliesMapper.selectServicePackagessuppliesByPackagessuppliesId(packagessuppliesId);
    }

    /**
     * 查询耗材包与耗材对照列表
     * 
     * @param servicePackagessupplies 耗材包与耗材对照
     * @return 耗材包与耗材对照
     */
    @Override
    public List<ServicePackagessupplies> selectServicePackagessuppliesList(ServicePackagessupplies servicePackagessupplies)
    {
        return servicePackagessuppliesMapper.selectServicePackagessuppliesList(servicePackagessupplies);
    }

    /**
     * 新增耗材包与耗材对照
     * 
     * @param servicePackagessupplies 耗材包与耗材对照
     * @return 结果
     */
    @Override
    public int insertServicePackagessupplies(ServicePackagessupplies servicePackagessupplies)
    {
        return servicePackagessuppliesMapper.insertServicePackagessupplies(servicePackagessupplies);
    }

    /**
     * 修改耗材包与耗材对照
     * 
     * @param servicePackagessupplies 耗材包与耗材对照
     * @return 结果
     */
    @Override
    public int updateServicePackagessupplies(ServicePackagessupplies servicePackagessupplies)
    {
        return servicePackagessuppliesMapper.updateServicePackagessupplies(servicePackagessupplies);
    }

    /**
     * 批量删除耗材包与耗材对照
     * 
     * @param packagessuppliesIds 需要删除的耗材包与耗材对照主键
     * @return 结果
     */
    @Override
    public int deleteServicePackagessuppliesByPackagessuppliesIds(Long[] packagessuppliesIds)
    {
        return servicePackagessuppliesMapper.deleteServicePackagessuppliesByPackagessuppliesIds(packagessuppliesIds);
    }

    /**
     * 删除耗材包与耗材对照信息
     * 
     * @param packagessuppliesId 耗材包与耗材对照主键
     * @return 结果
     */
    @Override
    public int deleteServicePackagessuppliesByPackagessuppliesId(Long packagessuppliesId)
    {
        return servicePackagessuppliesMapper.deleteServicePackagessuppliesByPackagessuppliesId(packagessuppliesId);
    }
}
